package com.museum.controller.APi;


import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import com.museum.entity.DO.Clue;
import com.museum.entity.DTO.CommitCol;
import com.museum.entity.DTO.ExcavationCol;
import com.museum.entity.DTO.QueryCol;
import com.museum.entity.message.ExcavationInformation;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @description 考古挖掘信息管理
 * @author ahm
 * @since 2021/3/8
 */
@Api(tags = "考古挖掘管理")
public interface ExcavationAPI {
    /**
     * @param
     * @Desciption 提交考古挖掘信息
     * @return
     */
    @ApiOperation(value = "提交考古挖掘信息")
    @PostMapping("/addExcavation")
    BaseResponse<JSONObject> addExcavation(@RequestBody ExcavationInformation excavationInformation, HttpServletRequest request);
    /**
     * @param
     * @Desciption 条件查询考古挖掘信息
     * @return
     */
    @ApiOperation(value = "条件查询考古挖掘信息")
    @PostMapping("/getAllExcavationByPage")
    BaseResponse<JSONObject> getAllExcavationByPage(long current, long limit,@RequestBody ExcavationInformation excInfo);
    /**
     * @param
     * @Desciption 删除考古挖掘信息
     * @return
     */
    @ApiOperation(value = "删除考古发掘信息")
    @DeleteMapping("/deleteExcById/{id}")
    BaseResponse<JSONObject> deleteExcById(@PathVariable("id") Integer id);

//    /**
//     * @param
//     * @Desciption 根据Id修改考古信息
//     * @return
//     */
//    @ApiOperation(value = "根据Id修改考古信息")
//    @DeleteMapping("/updateExcById/{id}")
//    BaseResponse<JSONObject> updateExcById(@PathVariable("id") Integer id);

}

